package tools

import (
    "fmt"
    "time"
)

// FunExecTime 函数执行时间
func FunExecTime(name string) func() {
    start := time.Now()
    return func() {
        fmt.Printf("%s %s\n", name, time.Since(start))
    }
}
